import request from '@/utils/request'

// 查询配置工单条件列表
export function listSHEETCONDITIONS(query) {
  return request({
    url: '/wodemand/SHEETCONDITIONS/list',
    method: 'get',
    params: query
  })
}


// 查询工单处理节点详细
export function getSheetTypes(_this) {
  return request({
    url: '/wodemand/SHEETNODE/sheetType',
    method: 'get'
  })
}

// 查询工单处理节点详细
export function getLogicCodes(_this) {
  return request({
    url: '/wodemand/CODE/listCode',
    method: 'get'
  })
}

export function importTemplate() {
  return request({
    url: '/wodemand/JUDGE/importTemplate',
    method: 'get'
  })
}

// 查询配置工单条件详细
export function getSHEETCONDITIONS(id) {
  return request({
    url: '/wodemand/SHEETCONDITIONS/' + id,
    method: 'get'
  })
}

// 新增配置工单条件
export function addSHEETCONDITIONS(data) {
  return request({
    url: '/wodemand/SHEETCONDITIONS',
    method: 'post',
    data: data
  })
}

// 修改配置工单条件
export function updateSHEETCONDITIONS(data) {
  return request({
    url: '/wodemand/SHEETCONDITIONS',
    method: 'put',
    data: data
  })
}

// 删除配置工单条件
export function delSHEETCONDITIONS(id) {
  return request({
    url: '/wodemand/SHEETCONDITIONS/' + id,
    method: 'delete'
  })
}

// 导出配置工单条件
export function exportSHEETCONDITIONS(query) {
  return request({
    url: '/wodemand/SHEETCONDITIONS/export',
    method: 'get',
    params: query
  })
}
